package ${module.package};

import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

<#list table.importedStr as clazz>
import ${clazz};
</#list>

/**
 * dto request for ${table.beanName} <br>
 * Created by ${loginUser} on ${generateDate}.
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
public class ${table.beanName}Request implements Serializable {

<#list table.columns as col>
    <#if col.hasCondition()>
    /** <#if (col.comment)??>${col.comment}  </#if><#if (col.defaultValue)??>默认值: ${col.defaultValue}</#if>  */
    <#if col.allowNull>
    @ApiModelProperty(value="${col.comment}")
        <#else>
    @ApiModelProperty(value="${col.comment}", required = true)
        </#if>
    private ${col.fieldTypeStr} ${col.fieldName};
</#if>
</#list>

}